package com.itheima.mapper;

import com.itheima.common.Com.Category;
import com.itheima.common.vo.CategoryDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {
    boolean add(Category category);

    boolean update(Category category);

    boolean delete(@Param("id") String id);

    List<Category> getall(Integer type);

    List<Category> page(@Param("start") Integer start,@Param("pageSize") Integer pageSize);

    long count();

    Category findbyId(String id);

    List<CategoryDto> list();
}
